namespace Universal.Domain.Entities.App;

public class AppFile : EntityBase
{
    public string Filename { get; set; } = string.Empty;

    // 用户上传文件的原始文件名
    public string OriginalName { get; set; } = string.Empty;
    public string Path { get; set; } = string.Empty; //文件路径
    public long Size { get; set; } = 0;
    public string? MimeType { get; set; }//MIME类型

    public Guid? UserId { get; set; }
    // 便于通过 AppFile.User 访问上传者
    public AppUser? User { get; set; }

}